package com.kgis.fm.flex.model.metadata
{
	import com.kgis.fm.flex.model.LifecycleModel;

	/**
	 * 
	 * @author Simon He
	 * 
	 */
	[Bindable]
	[RemoteClass(alias="com.kgis.fm.platform.model.metadata.Attribute")]
	public class Attribute extends LifecycleModel
	{
		public function Attribute()
		{
		}
		private var _ano:int;
		private var _cno:int;
		private var _table:String;
		private var _field:String;
		private var _name:String;
		private var _datatype:int;
		private var _required:int;
		private var _pno:int;
		private var _refreshGeometry:int;
		
		/**
		 * 字段类型
		 */
		public function get datatype():int
		{
			return _datatype;
		}

		/**
		 * @private
		 */
		public function set datatype(value:int):void
		{
			_datatype = value;
		}

		/**
		 * 组件对应的表名
		 */
		public function get table():String
		{
			return _table;
		}

		/**
		 * @private
		 */
		public function set table(value:String):void
		{
			_table = value;
		}

		/**
		 * 字段中文名称
		 */
		public function get name():String
		{
			return _name;
		}

		/**
		 * @private
		 */
		public function set name(value:String):void
		{
			_name = value;
		}

		/**
		 * 组件号
		 */
		public function get cno():int
		{
			return _cno;
		}

		/**
		 * @private
		 */
		public function set cno(value:int):void
		{
			_cno = value;
		}
		
		/**
		 * 属性编号
		 */
		public function get ano():int
		{
			return _ano;
		}
		
		/**
		 * @private
		 */
		public function set ano(value:int):void
		{
			_ano = value;
		}

		/**
		 * 字段名称
		 */
		public function get field():String
		{
			return _field;
		}

		/**
		 * @private
		 */
		public function set field(value:String):void
		{
			_field = value;
		}

	
		/**
		 * 是否必需
		 */
		public function get required():int
		{
			return _required;
		}
		
		/**
		 * @private
		 */
		public function set required(value:int):void
		{
			_required = value;
		}
		
		/**
		 * 下拉框编号
		 */
		public function get pno():int
		{
			return _pno;
		}
		
		/**
		 * @private
		 */
		public function set pno(value:int):void
		{
			_pno = value;
		}
		
		/**
		 * 是否刷新图形
		 */
		public function get refreshGeometry():int
		{
			return _refreshGeometry;
		}
		
		/**
		 * @private
		 */
		public function set refreshGeometry(value:int):void
		{
			_refreshGeometry = value;
		}
	}
}